Fixed a problem with using HTTPS.