fix checking wrong index in watcher.go