fixed paginate bug with filter