Fix some rotation issues.