Another attempt to fix the dialog box