Fix the sample code.