fixed the index of snippets