Fixed being able to dismiss the dialog without choosing something.