fix warn
Merge pull request #7588 from Dhilan007/v3

fix warn