Bug in ingest and sorted the templates.