Https bugfix