Fix shortest_path