fix bug in generating id’s based on species name