Fixed bug in the sample code.