dialog bug fix