diff --git a/ISRWord-tests b/ISRWord-tests
index d764a05c882eb66d747d29e1fe3755ea6a05f826..d48b31e1c8c6fb019a4880c18a548f61645c96cc 100755
Binary files a/ISRWord-tests and b/ISRWord-tests differ
diff --git a/build/1-wordseek.txt b/build/1-wordseek.txt
index 7f43701567b4cf301267ef5d700eb25adafbfb5b..ae9516ec24926a4bc0587b7752914c2721a0cded 100755
Binary files a/build/1-wordseek.txt and b/build/1-wordseek.txt differ
diff --git a/constraintSolver/ISREndDoc.cpp b/constraintSolver/ISREndDoc.cpp
index 48436f16de8d47eb0a74c0fb6ac96eef0bb6b4af..e6b29fd3180ce787e06eb5f9f6ec70d7f5dc3fd4 100644
--- a/constraintSolver/ISREndDoc.cpp
+++ b/constraintSolver/ISREndDoc.cpp
@@ -13,7 +13,13 @@ DocumentEnding ISREndDoc::next() {
     if(memMap == nullptr) {
         string fileName = util::GetCurrentWorkingDir() + pathToIndex + to_string(currentChunk) + ".txt";
         currentFile = open(fileName.c_str(), O_RDONLY);
-        MMDiskHashTable de(util::GetCurrentWorkingDir() + pathToIndex + to_string(currentChunk) + "-seek.txt", 30, 8);
+        string seekFileName = util::GetCurrentWorkingDir() + pathToIndex + to_string(currentChunk) + "-seek.txt";
+        if(0 != access(seekFileName.c_str(), 0)) {
+            DocumentEnding a = DocumentEnding();
+            a.url = "aaa";
+            return a;
+        }
+        MMDiskHashTable de(seekFileName, 30, 8);
         memMap = (char*) mmap(nullptr, util::FileSize(currentFile), PROT_READ, MAP_PRIVATE, currentFile, 0);
         memMap += stoll(de.find("=docEnding"));
     }
@@ -24,11 +30,6 @@ DocumentEnding ISREndDoc::next() {
             memMap = nullptr;
             return DocumentEnding();
         }
-        if(currentChunk == 5) {
-            DocumentEnding a = DocumentEnding();
-            a.url = "aaa";
-            return a;
-        }
         if(*map == '\n') {
             memMap = map;
             memMap++;