Moved listener trigger to within `isLocal` check.