Axis Inner Limit Switch

Axis Inner Limit Switch

Hello, we are having an issue with the Z Limit Switch on our CMM machine. We crashed the stylus into the part and it knocked the stylus off. It was not a hard crash, the stylus was inside of a bore about an 1/8" from the surface and the probe went the wrong direction and knocked the stylus to the side, enough for the program to stop.  We reattached it and re-qualified all the tips on the calibration sphere with no problems.

The issue we are having now is that when we try to run the program, its first step is to retract the probe all the way in the Z direction until it hits the Z Limit switch. I can even move the probe all the way to the negative Z direction, close to the table, and it will retract it all the way up and hit the Z Limit switch. Any ideas on how to fix this?

Thanks for the help.