fix the wrong code fragment in the sample
Merge pull request #1972 from jiwanqiang/development

fix the wrong code fragment in the sample