diff --git a/glossary.module b/glossary.module
index 8b843b8..2ca9970 100644
--- a/glossary.module
+++ b/glossary.module
@@ -1145,7 +1145,7 @@ function _glossary_get_terms($format) {
     $terms = array();
     $vids = variable_get("glossary_vids_$format", 0);
 
-    foreach ($vids as $vid) {
+    foreach ($vids as $vid => $name) {
       // Get all glossary terms.
       // Omit terms without a description. those are usually container terms.
       // If multilingual taxonomy is enabled only show terms in current or no
