diff --git a/core/modules/node/node.js b/core/modules/node/node.js
index fc2da88183..4564f1c97e 100644
--- a/core/modules/node/node.js
+++ b/core/modules/node/node.js
@@ -29,7 +29,7 @@
         var vals = [];
 
         if ($optionsContext.find('input').is(':checked')) {
-          $optionsContext.find('input:checked').next('label').each(function () {
+          $optionsContext.find('input:checked').closest('label').each(function () {
             vals.push(Drupal.checkPlain($.trim($(this).text())));
           });
           return vals.join(', ');
@@ -39,4 +39,5 @@
       });
     }
   };
-})(jQuery, Drupal, drupalSettings);
\ No newline at end of file
+})(jQuery, Drupal, drupalSettings);
+
