bug fix. Also changed how sequenceLink id's are created