diff --git a/tagclouds.module b/tagclouds.module
index 30c4e6a..aad8e4c 100644
--- a/tagclouds.module
+++ b/tagclouds.module
@@ -357,7 +357,7 @@ function theme_tagclouds_weighted(array $vars) {
 function tagclouds_display_term_link_weight($name, $tid, $weight, $description) {
   $taxonomy_term_info = entity_get_info('taxonomy_term');
   if ($term = $taxonomy_term_info['load hook']($tid)) {
-    $uri = $taxonomy_term_info['uri callback']($term);
+    $uri = entity_uri('taxonomy_term', $term);
     $uri['options']['attributes']['class'][] = 'tagclouds';
     $uri['options']['attributes']['class'][] = 'level' . $weight;
     $uri['options']['attributes']['rel'] = 'tag';
