fixed a bug in the _set_rot_z