fix typos in the query of the generator