fix https issues