diff --git a/lib/form/templates/element-group-inline.mustache b/lib/form/templates/element-group-inline.mustache
index 2d3022edffc..bdddf75317b 100644
--- a/lib/form/templates/element-group-inline.mustache
+++ b/lib/form/templates/element-group-inline.mustache
@@ -1,6 +1,6 @@
{{< core_form/element-template-inline }}
{{$element}}
-
+
{{#element.elements}}
{{{separator}}}
{{{html}}}
diff --git a/lib/form/templates/element-group.mustache b/lib/form/templates/element-group.mustache
index e9a5c058149..d5cca77a707 100644
--- a/lib/form/templates/element-group.mustache
+++ b/lib/form/templates/element-group.mustache
@@ -9,7 +9,7 @@
{{$element}}