deal with weird undo