Fix wrong autocorrelation formula