bugfixed a small offset-checking bug
diff --git a/src/main/java/de/ids_mannheim/korap/KorapMatch.java b/src/main/java/de/ids_mannheim/korap/KorapMatch.java
index 30c15f0..e8f062e 100644
--- a/src/main/java/de/ids_mannheim/korap/KorapMatch.java
+++ b/src/main/java/de/ids_mannheim/korap/KorapMatch.java
@@ -756,7 +756,7 @@
 
 	    if (pos > oldPos) {
 
-	      if (pos > clean.length() - 1) {
+	      if (pos > clean.length()) {
 		pos = clean.length() - 1;
 	      };
 
diff --git a/src/test/java/de/ids_mannheim/korap/index/TestFieldDocument.java b/src/test/java/de/ids_mannheim/korap/index/TestFieldDocument.java
index 7e4032b..cac5c89 100644
--- a/src/test/java/de/ids_mannheim/korap/index/TestFieldDocument.java
+++ b/src/test/java/de/ids_mannheim/korap/index/TestFieldDocument.java
@@ -256,7 +256,8 @@
 
 	KorapResult kr = ki.search(sqwi.toQuery(), 0, (short) 5, true, (short) 2, false, (short) 5);
 
-	// Bug: System.err.println(kr.toJSON());
+	// Bug:
+	System.err.println(kr.toJSON());
     };
 
     public static String getString (String path) {