Fix bug with rotation=0.