Fix bug in ingest pipelines code