undo - problems with edit