Trying to fix undo of delete