bug fix for "https"