Fix in graph sort.