fixed issues with charting