complexType inheritance fix.