Fix sample code in README.md

Fixed a code having a bug in README.md.