fix segment_sequence