fixed https check