paging issue when using search