Fix bug with rotation dimensions