Fix types to generated code.