undo redo fix