Fixed rotation undo/redo bug