Fixing syntax errors in ingest process.