use compatibility workaround for template.
fix pagination issue.