undo last edit, was pure optimization not bug