fix xcorr indexing yet again