bugfixes on search paging