fix issue with files that failed during scanning