modify comparator bug