fixed rotate singularity