Fixed load state and rotation bugs.