fix bug: exception when aai enrichment is false