bugfix to tls options
bugfix