Correction on pagination template