fix merge error in create_chart