Fix strange rotation behaviour (fix #127)