fixed amazingly stupid bug in examples.