small fix for segment durations

this may fix minor issues related to segment durations