Fixes the call of the download function.