Fixed several errors in examples.