Trying to fix weird error on heroku: returning the chart object directly at Chart creation.