Fixed bug in the output of interactions