Fix two small code error in examples.
Merge pull request #436 from xiaohanyu/master

Fix two small code error in examples.