Fix calling of batches.