Solved some rotation bugs.