fix broken dialog box feature :'(