Fixed a bug in the examples
Merge pull request #1360 from rgksugan/patch-2

Fixed a bug in the examples