fixed small bugs in examples