dialog fix bug