comparator fix