fixed typo in comparator