fix curl follow redirects