Mass conservation in chemical reactions