fixed bugs in geneScript