chart to_dict fix