fix runtime error
Merge pull request #8691 from minggo/fix-runtime

[ci skip]fix runtime error