fixed some dialog faults