Fixing the search in my paginated table