fix batch_cal