Bug in dialogs