Fixed error in casting pointers to reactions.