diff --git a/src/rougail/template.py b/src/rougail/template.py
index 975b8093b..c1060a8f4 100644
--- a/src/rougail/template.py
+++ b/src/rougail/template.py
@@ -318,7 +318,7 @@ class CreoleTemplateEngine:
for idx, suboption in enumerate(variable.list('all')):
if idx == 0:
leader = CreoleLeader(suboption.value.get())
- leader_name = suboption.value.name()
+ leader_name = suboption.option.name()
else:
leader.add_slave(config,
suboption.option.name(),
diff --git a/tests/flattener_dicos/60extra_group/00-base.xml b/tests/flattener_dicos/60extra_group/00-base.xml
new file mode 100644
index 000000000..82930cc37
--- /dev/null
+++ b/tests/flattener_dicos/60extra_group/00-base.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+ non
+
+
+ non
+
+
+
+
+
diff --git a/tests/flattener_dicos/60extra_group/extra_dirs/extra/00-base.xml b/tests/flattener_dicos/60extra_group/extra_dirs/extra/00-base.xml
new file mode 100644
index 000000000..3eee3a03c
--- /dev/null
+++ b/tests/flattener_dicos/60extra_group/extra_dirs/extra/00-base.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+ test
+
+
+ pre
+
+
+
+
+
+ mode
+
+
+
diff --git a/tests/flattener_dicos/60extra_group/makedict/base.json b/tests/flattener_dicos/60extra_group/makedict/base.json
new file mode 100644
index 000000000..b9fcd95b7
--- /dev/null
+++ b/tests/flattener_dicos/60extra_group/makedict/base.json
@@ -0,0 +1 @@
+{"containers.container0.files.file0.mkdir": false, "containers.container0.files.file0.name": "/etc/mailname", "containers.container0.files.file0.rm": false, "containers.container0.files.file0.source": "mailname", "containers.container0.files.file0.activate": true, "extra.ejabberd.description.description": ["test"], "extra.ejabberd.description.mode": ["pre"]}
\ No newline at end of file
diff --git a/tests/flattener_dicos/60extra_group/result/00-base.xml b/tests/flattener_dicos/60extra_group/result/00-base.xml
new file mode 100644
index 000000000..9444a882f
--- /dev/null
+++ b/tests/flattener_dicos/60extra_group/result/00-base.xml
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+ False
+
+
+ /etc/mailname
+
+
+ False
+
+
+ mailname
+
+
+ True
+
+
+
+ basic
+
+
+
+
+ normal
+
+ oui
+ non
+ force_default_on_freeze
+ frozen
+ hidden
+ mandatory
+ normal
+ non
+
+
+ oui
+ non
+ force_default_on_freeze
+ frozen
+ hidden
+ mandatory
+ normal
+ non
+
+
+
+
+
+
+ normal
+
+ normal
+
+ mandatory
+ test
+
+
+ mandatory
+ normal
+ pre
+
+
+
+
+
diff --git a/tests/templates/60extra_group/00-base.xml b/tests/templates/60extra_group/00-base.xml
new file mode 100644
index 000000000..9444a882f
--- /dev/null
+++ b/tests/templates/60extra_group/00-base.xml
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+ False
+
+
+ /etc/mailname
+
+
+ False
+
+
+ mailname
+
+
+ True
+
+
+
+ basic
+
+
+
+
+ normal
+
+ oui
+ non
+ force_default_on_freeze
+ frozen
+ hidden
+ mandatory
+ normal
+ non
+
+
+ oui
+ non
+ force_default_on_freeze
+ frozen
+ hidden
+ mandatory
+ normal
+ non
+
+
+
+
+
+
+ normal
+
+ normal
+
+ mandatory
+ test
+
+
+ mandatory
+ normal
+ pre
+
+
+
+
+
diff --git a/tests/templates/60extra_group/result/test/etc/mailname b/tests/templates/60extra_group/result/test/etc/mailname
new file mode 100644
index 000000000..ecca61d99
--- /dev/null
+++ b/tests/templates/60extra_group/result/test/etc/mailname
@@ -0,0 +1 @@
+pre
diff --git a/tests/templates/60extra_group/tmpl/mailname b/tests/templates/60extra_group/tmpl/mailname
new file mode 100644
index 000000000..da3e807af
--- /dev/null
+++ b/tests/templates/60extra_group/tmpl/mailname
@@ -0,0 +1,3 @@
+%for %%description in %%extra.ejabberd.description
+%%description.mode
+%end for