[FIX] Remove batches pop from vals on write

Merged Facundo Barral requested to merge 12.0-FIX-BATCHES into 12.0

Merge request reports