Fix two small code error in examples.