Fixed bug in fast dijkstra.