fix errors in examples