fix snippets