Fixed bug in get_download_link