Fix bug in shortest path implementation