diff --git a/modules/getdirections_fields/getdirections_fields.module b/modules/getdirections_fields/getdirections_fields.module
index 1f58937..d778490 100644
--- a/modules/getdirections_fields/getdirections_fields.module
+++ b/modules/getdirections_fields/getdirections_fields.module
@@ -100,7 +100,7 @@ function getdirections_fields_field_formatter_info() {
 function getdirections_fields_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
 
   global $language;
-  $lang = ($langcode ? $langcode : ($entity->language ? $entity->language : $language->language));
+  $langcode = ($langcode ? $langcode : ($entity->language ? $entity->language : $language->language));
   $settings = $display['settings'];
   $module = getdirections_get_current_supported_module();
   $address_field_name = FALSE;
