generated code fix