fix a couple minor issues in example