Fix a bug which causes the reverse reaction to be stored.