fix dialog and comparer