Fix discretization issues with pxcorr