bug fix in route watcher