fixes server pagination