fix issue 10167
Merge pull request #1304 from majiang/patch-2

fix issue 10167