A scope typo in download()