Fix subtle bug in correlations function (the correlators do not depend solely on distance)