Fixed the comparator flag