there is a bug with the comparator