Updated payload order for classnumber
diff --git a/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedExclusionSpans.java b/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedExclusionSpans.java
index f406ef2..79c6db4 100644
--- a/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedExclusionSpans.java
+++ b/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedExclusionSpans.java
@@ -224,9 +224,9 @@
 	
 	private byte[] calculateExtensionOffsets(int start, int end) {
 		ByteBuffer buffer = ByteBuffer.allocate(9);
-		buffer.put(classNumber);
 		buffer.putInt(start);					
-		buffer.putInt(end);					
+		buffer.putInt(end);	
+		buffer.put(classNumber);
 		return buffer.array();
 	}
 	
diff --git a/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedSpans.java b/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedSpans.java
index 9000d4e..1f039cd 100644
--- a/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedSpans.java
+++ b/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedSpans.java
@@ -109,10 +109,10 @@
 	}
 	
 	private byte[] calculateExtensionOffsets(int start, int end) {
-		ByteBuffer buffer = ByteBuffer.allocate(9);
+		ByteBuffer buffer = ByteBuffer.allocate(9);		
+		buffer.putInt(start);
+		buffer.putInt(end);
 		buffer.put(classNumber);
-		buffer.putInt(start);					
-		buffer.putInt(end);					
 		return buffer.array();
 	}