fix pagination snippets