HTTPS bugfix