Restore correct meaning to Segment.pos and Segment.end_pos.