fix https issues.