fix problems on https request