bug fix in getSegmentInfo