fixed a bug concerning summing over detector pairs in the likelihood function