Fix bug in Piechart