fixed error in dialog box