Fixed shortest_path