fix a bug in gene_sqlite