Fixed inconsistency in rotation angles.