Fixed bug in example program.