fixed charting bug