Fixed a bug in VariableG of ReactionProcess