fixed error in callback for download()