Bugfix for HTTPS