Fixed https bug