Fixed error with chart data