fixed checking filter from params