bug fix for charts