fixed watcher errors on mac