fixed file watcher bug