correct bracketing, fix #47007

fix wrong bracketing.
Merge pull request #52269 from mauk81/patch-4

correct bracketing, fix #47007