Fix some minor problems
Merge pull request #953 from markewallace/FixSomeSnippets

Fix some minor problems