fixed little bug in dialogs