diff --git a/tmcd/tmcd.c b/tmcd/tmcd.c
index 3b4039889412a19acb7d7956d9ab01e61d4c7474..210cdb66dacaa50982d1f9ba8fa9d0ca1d1d4332 100644
--- a/tmcd/tmcd.c
+++ b/tmcd/tmcd.c
@@ -4413,9 +4413,11 @@ COMMAND_PROTOTYPE(dostorageconfig)
 	res = mydb_query("select rb.bsidx, r.vname, rb.vname, rb.size "
 			 "from reserved_blockstores as rb "
 			 " left join reserved as r "
-			 "  on r.node_id = rb.vnode_id "
+			 "  on r.node_id = rb.vnode_id and "
+			 "     r.exptidx = rb.exptidx "
 			 " left join virt_lans as vl "
-			 "  on r.vname = vl.vnode "
+			 "  on r.vname = vl.vnode and "
+			 "     r.exptidx = vl.exptidx "
 			 "where vl.vname in (%s) "
 			 " and vl.pid='%s' and vl.eid='%s'",
 			 4, buf, reqp->pid, reqp->eid);