Finalizing undo