fix bug when using wrapping client protocols/factories .. TLS