Fix empty search param bug.