Fixed a render issue with rotation