fix undefined watcher