fix issue with adding parenthesis to root names.
Reviewer: Dan V. (post-commit)
Issue: GCP-9208