Fix getting last ingestion document