fixed the generator of ReactionRule