Fixed shortest paths again