fixing ingest bug