Fixed issue with rotation being in wrong direction