Fixed pie graph bug