Fix snippets errors