Fix syntax in sample code.