Fix strange bug where file name was changing after first download.