diff --git a/fullcalendar_legend/fullcalendar_legend.module b/fullcalendar_legend/fullcalendar_legend.module
index 5513eb1..26518b0 100644
--- a/fullcalendar_legend/fullcalendar_legend.module
+++ b/fullcalendar_legend/fullcalendar_legend.module
@@ -136,13 +136,14 @@ function fullcalendar_legend_get_type_taxonomy($fields) {
           foreach ($field_info[$taxonomy_field_name]['settings']['allowed_values'] as $vocab) {
             $vocabulary = taxonomy_vocabulary_machine_name_load($vocab['vocabulary']);
             foreach (taxonomy_get_tree($vocabulary->vid) as $term) {
+              $term->vocabulary_machine_name = $vocabulary->machine_name;
               $types[$term->tid]['entity_type'] = $entity_type;
               $types[$term->tid]['field_name'] = $field_name;
               $types[$term->tid]['bundle'] = $bundle;
               $types[$term->tid]['label'] = ($use_i18n) ? i18n_taxonomy_term_name($term) : $term->name;
               $types[$term->tid]['taxonomy_field'] = $taxonomy_field_name;
               $types[$term->tid]['tid'] = $term->tid;
-              $types[$term->tid]['uri'] = taxonomy_term_uri($term);
+              $types[$term->tid]['uri'] = entity_uri('taxonomy_term', $term);
             }
           }
         }
diff --git a/fullcalendar_legend/theme/theme.inc b/fullcalendar_legend/theme/theme.inc
index 0b60a62..30eea6f 100644
--- a/fullcalendar_legend/theme/theme.inc
+++ b/fullcalendar_legend/theme/theme.inc
@@ -32,6 +32,7 @@ function template_preprocess_fullcalendar_legend(&$variables) {
       $element[$type_name]['type'] = array(
         '#type' => 'link',
         '#href' => $type['uri']['path'],
+        '#options' => isset($type['uri']['options']) ? $type['uri']['options'] : array(),
         '#title' => $type['label'],
       );
     }
