bug fix in examples