Fix bug with segmentinfos cloning