Fix bug with comparator that was failing hard