filter pagination fix