fix https check