pie chart tracking fix from NaN bug