UndoManager Bugfix