fixed sample code bug