Fix uninitialized batch_next