fix issue: crash when only one search result.