fix dialog close