correct error in order to show the pagination controls