Fix bug with downloading a file using custom thread count/chunk size settings