Fix invalid sample code.