Z Axis not performing as expected