- Fix for not resetting the currentPage

- Takes care of this case whenever you are changing pageSize, searching
or sorting.