fixed the rotation issue