correct socket c api
diff --git a/ccnx/sync-app-socket-c.cc b/ccnx/sync-app-socket-c.cc
index ef4e6b6..e23c8d1 100644
--- a/ccnx/sync-app-socket-c.cc
+++ b/ccnx/sync-app-socket-c.cc
@@ -66,8 +66,11 @@
     for (i = 0; i < mdi.size(); i++)
     {
       mdic[i].prefix = mdi[i].prefix.c_str();
-      mdic[i].session = mdi[i].low.getSession();
-      mdic[i].low = mdi[i].low.getSeq();
+      mdic[i].session = mdi[i].high.getSession();
+      if (mdi[i].low.getSession() != mdi[i].high.getSession())
+        mdic[i].low = 0;
+      else
+        mdic[i].low = mdi[i].low.getSeq();
       mdic[i].high = mdi[i].high.getSeq();
     }
     if (m_callback != NULL)