Fixing a bug in multi-molecule chemical reaction.