code generation complete, with complexType bug