bug fix in stoichiometry code