Fixed a problem where the file_ingested flag was not being set based off invalid logic.