fixed ingest bug