Dialog bug fix.