shortest path fixes integrated from corridormap.