Fix (?) for submenuVisibility issue when providing whole menu

Thanks Hitcher (for reporting) and Annie (for debugging)