Fix https bug