 .../geolocation_googlemaps/geolocation_googlemaps.module       | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/www/sites/all/modules/contrib/geolocation/modules/geolocation_googlemaps/geolocation_googlemaps.module b/www/sites/all/modules/contrib/geolocation/modules/geolocation_googlemaps/geolocation_googlemaps.module
index f43fb04..eddb441 100755
--- a/www/sites/all/modules/contrib/geolocation/modules/geolocation_googlemaps/geolocation_googlemaps.module
+++ b/www/sites/all/modules/contrib/geolocation/modules/geolocation_googlemaps/geolocation_googlemaps.module
@@ -364,9 +364,13 @@ function geolocation_googlemaps_field_widget_form(&$form, &$form_state, $field,
   // we check if our map widget is part of a Field collection and add the
   // #field_parents delta.
   if ($instance['entity_type'] == 'field_collection_item') {
-    $depth = count($element['#field_parents']) - 1;
-    $parent_delta = $element['#field_parents'][$depth];
-    $id = $instance['id'] . '-' . $parent_delta . '-' . $delta;
+    $parent_deltas = array();
+    foreach ($element['#field_parents'] as $key => $value) {
+      if (($key + 1) % 3 === 0) {
+        $parent_deltas[] = $value;
+      }
+    }
+    $id = $instance['id'] . '-' . implode('-', $parent_deltas) . '-' . $delta;
   }
   else {
     $id = $instance['id'] . '-' . $delta;
