Fixed vqa crashes

Fixes #4224.
I think it's a bit clearer to just set stream.Position directly.