fix referencing to chart type