Fixed the pagination display