fixing presisting batches