Pagination bug: Doesn't update when data is filtered

When you filter data in the grid, the pagination doesn’t update itself until u click on ‘next’ ‘previous’ button.