fix private attribute warning
Merge pull request #10090 from vipulnsward/fix_private_warn

fix private attribute warning