Fixed sample code.
Merge pull request #988 from kuu/master

Fixed sample code.