Correct Z-axis direction