fixes calculation of the lastest index for SegmentList