diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 4b62f5c..e95b214 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -234,7 +234,7 @@ const AppSwitcherPopup = new Lang.Class({
     _finish : function(timestamp) {
         let appIcon = this._items[this._selectedIndex];
         let window = this._currentWindow > 0 ? this._currentWindow : 0;
-        appIcon.app.activate_window(appIcon.cachedWindows[window], timestamp);
+        Main.activateWindow(this._items[this._selectedIndex].window);
 
         this.parent();
     },
