diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js
index 22151b3f3..88f5a5b1e 100644
--- a/skins/elastic/ui.js
+++ b/skins/elastic/ui.js
@@ -809,16 +809,15 @@ function rcube_elastic_ui()
// append the new toolbar and menu button
if (items.length) {
- var menu_button = $('