Rotation matrix correction