fixed a typo in the sample code