Fixes nested filters.