Fixed minor error in sample code.