Fix TLS support
Version 0.3.6