fix a bug of Gene.getGenes