Corrects lookup of file to download.