fix rotating issue.