Fixed so that the pie chart shows correct ratio