Sounds like you've got Z direction reversed. Either change it in the firmware or power everything off and reverse the motor connectors (reversing them changes direction).