Fixes multiple submenus popping up