fixed logic in getFilterQueryParams