Improve README.md exmaple code to prevent TypeError
Merge pull request #6 from alexxiyang/master

Improve README.md exmaple code to prevent TypeError