fixed a pie graph bug