fixed directory watcher crash