bug fix in bodyNumInteractionsHistogram (avoid segfault)