Fix rotation to rotate in correct direction