fix expansion term filter