fixed search on empty term bug finally :-)