--- a/src/index/subtreelist.cpp
+++ b/src/index/subtreelist.cpp
@@ -39,7 +39,7 @@
     Rcl::SearchData *sd = new Rcl::SearchData(Rcl::SCLT_OR, cstr_null);
     RefCntr<Rcl::SearchData> rq(sd);
 
-    rq->addDirSpec(top);
+    sd->addClause(new Rcl::SearchDataClausePath(top, false));
 
     Rcl::Query query(&rcldb);
     query.setQuery(rq);