diff --git a/leaflet.formatters.inc b/leaflet.formatters.inc
index 3219bcb..a16c584 100644
--- a/leaflet.formatters.inc
+++ b/leaflet.formatters.inc
@@ -396,7 +396,7 @@ function leaflet_apply_map_settings(&$map, &$features, $map_settings, $entity_ty
 
     // Apply Icon settings:
     if ($icon == 'html') {
-      $icon_field = field_view_field($entity_type, $feat['entity'], $settings['icon']['html'], array('label' => 'hidden'));
+      $icon_field = field_view_field($entity_type, $entity, $settings['icon']['html'], array('label' => 'hidden'));
       if (!empty($settings['icon']['iconSize']['x']) || !empty($settings['icon']['iconSize']['y'])) {
         // We hand the size off to the API, but the rendered HTML will dictate
         // its own size, so we override that as well.
