fixed issue with rotation