Fix some snippets