solving https bug