fix comparator catching