Fixed bug in sample code