Fixed corrected way of rendering pie chart