bugfix of iteration through search results