Fix for downloading duplicate files