Fixed the pagination settings