add undo setting
fix typo