Fixed a rotation problem