fixing snippets