Correction on last page pagination