fixed a bug in the example code.
Merge pull request #2 from 9nut/master

fixed a bug in the example code.