diff --git a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/ftp/resolver/TemplateBasedDataSetResourceResolver.java b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/ftp/resolver/TemplateBasedDataSetResourceResolver.java
index 280f123407ca4f5f0af2d6b80295dd959ec71ac0..692e4fdb44a8cafa50814d641e04733a87f74d7f 100644
--- a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/ftp/resolver/TemplateBasedDataSetResourceResolver.java
+++ b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/ftp/resolver/TemplateBasedDataSetResourceResolver.java
@@ -467,7 +467,7 @@ public class TemplateBasedDataSetResourceResolver implements IFtpPathResolver,
 
                 FtpFile childFtpFile =
                         FtpFileFactory.createFtpFile(dataSetCode, childPath,
-                                evalElement.contentNode, getContentProvider.asContent(dataSetCode),
+                                evalElement.contentNode, getContentProvider.asContent(evalElement.dataSet),
                                 fileFilter);
                 result.add(childFtpFile);
             }