fixed https issues