Fix bug in examples.