dialog box fix