fix: errors with comparator