fixed bug in editor when using undo after rotating level repeatedly