bug fix auth_https