Fix a problem on the writer side with local vars.

Problems remain on the reader side, left for next PR.

Merge request reports

Loading