mergeBatches not working