Fixed bug on function to retrieve download link.