fixed rotate on category issue