travel time bug

sometimes cumulative_flow:end_time returns undefined...