fixes #2 typo for dialogs causing selected clear when input starts to have a bug