fixed wrong search result index problem