Fix small bug in examples.
Fix bug in example program.