fixes dialog