Fix pager of grid view
Display last page index correctly