fixed some errors in examples

so you can run it