Fix two variable initializations (which could lead to crash)

The problem of file not being updated was due to vim: indeed, when you write something to a file, it opens it, write, and then closes it which seems to modify the stream.

I'll try to find a way to detect such changes in the stream to be able to reload the file.