apply TLS fix