fix crosscorr kernel formula