Fix typos in generator