Fix C# PivotTable extension method