fix the dialog