task comparator bug fixed