fix search empty term problem