fix update_hashes_by_file