Fix rotation of axes