fixed the pagination bug introduced earlier today