fix errors + allow to save a chart configuration