Fixed pushBatch for different ID types