Fixed bug when navigating to the last page and the items on that page is less than pageSize and active item is larger than items on last page