fixed typos in the generated code