Wrong variables.
Fixing the generated code.