Prevent crash on duplicate files in listfile.