Fixed rotate issue.