Fixed a typo in sample code