Fix tls_env in instance_com