Fixed "idx" when multiple snippets called at one page