fixed a bug

the final output should be the minimum fitness value and the related
total distance, not the min distance