Fix exception when the departure and the arrival are next to each other. I redefined the path by including the arrival in the path.