diff --git a/trunk/templates/default/LSformElement.tpl b/trunk/templates/default/LSformElement.tpl
index ddabefbd..ceaef1d1 100644
--- a/trunk/templates/default/LSformElement.tpl
+++ b/trunk/templates/default/LSformElement.tpl
@@ -2,6 +2,7 @@
{foreach from=$values item=value}
{include file=$fieldTemplate}
{foreachelse}
+ {assign var=value value=""}
{include file=$fieldTemplate}
{/foreach}
diff --git a/trunk/templates/default/LSformElement_boolean.tpl b/trunk/templates/default/LSformElement_boolean.tpl
index c48bd505..ee4b2a8a 100644
--- a/trunk/templates/default/LSformElement_boolean.tpl
+++ b/trunk/templates/default/LSformElement_boolean.tpl
@@ -2,6 +2,7 @@
{foreach from=$values item=value}
{include file=$fieldTemplate}
{foreachelse}
+ {assign var=value value=""}
{include file=$fieldTemplate}
{/foreach}
diff --git a/trunk/templates/default/LSformElement_select_object.tpl b/trunk/templates/default/LSformElement_select_object.tpl
index 64ecff2f..9066fdfb 100644
--- a/trunk/templates/default/LSformElement_select_object.tpl
+++ b/trunk/templates/default/LSformElement_select_object.tpl
@@ -7,6 +7,8 @@
{foreach from=$values item=txt key=dn}
{include file=$fieldTemplate}
{foreachelse}
+ {assign var=dn value=""}
+ {assign var=txt value=""}
{include file=$fieldTemplate}
{/foreach}