Fix bad initialization of filemonitor