fix snippets bug