Fix filewatcher