fix nanning of xcorr autocorr