Homing cycle acting strangely on Z axis