diff --git a/src/basis/template/htmlfgen.js b/src/basis/template/htmlfgen.js
index <HASH>..<HASH> 100644
--- a/src/basis/template/htmlfgen.js
+++ b/src/basis/template/htmlfgen.js
@@ -115,7 +115,7 @@
         {
           myRef = -1;
 
-          if (!i && path == rootPath)
+          if (path == rootPath)
             objectRefList.push(localPath);
 
           if (!explicitRef)
mark with basisObjectId every first level elements, but not only first one