fixed a bug in the assignment of interaction subtype.