bugfix for search paging