Fix the dialogs default buttons

Which fixes #197