Bugfix : js error in tray submenu