fix segment id for ii