diff --git a/compiler2/xpather.cc b/compiler2/xpather.cc
index 3b9c43b6c5224f7bad809c0d85154f82bdff970a..d2ade7e4df14491f0dfb34c4d2924b0f64a80394 100644
--- a/compiler2/xpather.cc
+++ b/compiler2/xpather.cc
@@ -1907,7 +1907,7 @@ static tpd_result process_tpd_internal(const char **p_tpd_name, char *tpdName, c
   // Collect files; filter out excluded ones
   {
     XPathObject  filesObj(run_xpath(xpathCtx,
-      "TITAN_Project_File_Information/Files/FileResource"));
+      "/TITAN_Project_File_Information/Files/FileResource"));
 
     xmlNodeSetPtr nodes = filesObj->nodesetval;
     if (nodes) for (int i = 0; i < nodes->nodeNr; ++i) {