fix compiling error
Merge pull request #7108 from minggo/v3

fix compiling error