Fix error in code sample, closes #194