fix https bug