Fix wrong comparator