fix comparer bug