Fix comparator