fix some syntax problem in snippets.