sample code bug fixed.