fix change type of charts