fix some snippets