fixed typo error and dialog mischecking