fixes a rotation issue