fixed rotate.cs