Fixed error when downloading from private webpages