Resolving minor filter problem

If a page (bigger than 1) is selected(for example 3), after filtering, if result has pages less than selected page(only 2 page result after filtering), nothing will not be shown