Why does UGS get confused on Z axis direction?