SJF comparator fix