fixed the http/https issue