diff --git a/js/misc/objectManager.js b/js/misc/objectManager.js index 1ce4f8342..5dffaa130 100644 --- a/js/misc/objectManager.js +++ b/js/misc/objectManager.js @@ -236,7 +236,8 @@ var ObjectManager = new Lang.Class({ _onNameVanished() { let objectPaths = Object.keys(this._objects); for (let i = 0; i < objectPaths.length; i++) { - let object = this._objects[objectPaths]; + let objectPath = objectPaths[i]; + let object = this._objects[objectPath]; let interfaceNames = Object.keys(object); for (let j = 0; i < interfaceNames.length; i++) {