Fix the tenantmixin to filter by tenant in case of polymorphism