fix the processing of archive files when computing IDF weightings