fix as suggested in #7333
Merge pull request #7599 from adobe/fix-7333

fix as suggested in #7333