hack to fix iterator when type filter is applied for search results