Fix errors in examples