Update README.md

fixed issue in sample code provided in readme.md