bug fix exception generated when 0 search result