Fix rotation errors