rotation matrix fix