Fixed the rotation issue