Fix checkComparator