Fixed bug in N-dimensional ACF code.