fix https protocol problem