HTTPS bug fix (edit)