Bugfix when calculating length of edge
Bugfix, fixed departures in same time