Corrected rotation matrix