fixed dialog box issue