warning removed
fixed a race in the shortest path algorithm