fix gen pi_id from batchid