Fix the ingest script