fixed complexType bug