Fixed global undo/redo