fix bug dialogs