fix for setting the segment duration