Correct flaws in example code.