pagination: fix template