check for repeated undo