undo/redo fix