Do not call nextSegment() from {first,last}Segment()