Fix bug reseting contextual menu when the shortcut is used