fix bug: exception: unmarshalling unknown type code