diff --git a/extensions/dock/extension.js b/usr/share/gnome-shell/extensions/dock@gnome-shell-extensions.gnome.org/extension.js
index 47cd76f..d3faa2d 100644
--- a/extensions/dock/extension.js
+++ b/extensions/dock/extension.js
@@ -682,7 +684,7 @@ DockIcon.prototype = {
             this._menu.connect('activate-window', Lang.bind(this, function (menu, window) {
                 this.activateWindow(window);
             }));
-            this._menu.connect('popup', Lang.bind(this, function (menu, isPoppedUp) {
+            this._menu.connect('open-state-changed', Lang.bind(this, function (menu, isPoppedUp) {
                 if (!isPoppedUp){
                     //Restore value of autohidedock
                     this._dock._restoreHideDock();
@@ -776,7 +778,6 @@ DockIconMenu.prototype = {
         this._source = source;
 
         this.connect('activate', Lang.bind(this, this._onActivate));
-        this.connect('open-state-changed', Lang.bind(this, this._onOpenStateChanged));
 
         this.actor.add_style_class_name('dock-menu');
 
