Fix query filters.