fixed minor undohandler