Fix sample code.