Fixed a compile error in the generated code.