Fix cross correlation