Fixing https and URL downloads