Fix TLS methods