corrected a bug for CO2