fixed search on empty term bug.