fixed id collision in segment collection