fix template snippets