diff --git a/_layouts/default.html b/_layouts/default.html
index 8641d982f825163ac8c2bcf5b8cee666e267c551..81bd3fcc33725fadd5630c377ec85c5bba0e3630 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -55,7 +55,7 @@ layout: table_wrappers
           {% assign collection_value = collection_entry[1] %}
           {% assign collection = site[collection_key] %}
           {% if collection_value.nav_exclude != true %}
-            {% if doc_collections_size > 1 %}
+            {% if collections_size > 1 %}
               <div class="nav-category">{{ collection_value.name }}</div>
             {% endif %}
             {% include nav.html pages=collection %}