Pivot table not updating correctly