fix chart type