Fix major bug relating to the download list.

$download_list initialized outside of loop when it should be inside the loop.