fix typos in generation