Fix errors in example