fix typos in generator