Fixed the orientation-swapping thing