fix sample code.