changed search results (index) in materials to show correct number of results