fixed rotate compensation bug