Corrected the source and generated code.