fix reset problem when "search" string is not empty