fix segment id