PulsarCrossCorr_v2: fixed a bug in conditional expression in statistic function may cause breakout