fixed issue with downloading a file