fix the comparator
range event