fix gh-1493 tutorial example that use undefined variable.
Merge pull request #1494 from nouiz/fix_example

fix gh-1493 tutorial example that use undefined variable.