fix the HTTP/HTTPS errs