bugfix, tls version was not set at start