Fixed setting null payload
diff --git a/src/main/java/de/ids_mannheim/korap/query/spans/CandidateSpan.java b/src/main/java/de/ids_mannheim/korap/query/spans/CandidateSpan.java
index 864f3a6..269fc5d 100644
--- a/src/main/java/de/ids_mannheim/korap/query/spans/CandidateSpan.java
+++ b/src/main/java/de/ids_mannheim/korap/query/spans/CandidateSpan.java
@@ -22,7 +22,7 @@
 		this.doc = span.doc();
 		this.start = span.start();
 		this.end = span.end();
-		this.cost = span.cost();		
+		this.cost = span.cost();
 		if (span.isPayloadAvailable())
 			setPayloads(span.getPayload());
 		
@@ -73,9 +73,13 @@
 		return payloads;
 	}
 
-	public void setPayloads(Collection<byte[]> payloads) {
+	public void setPayloads(Collection<byte[]> payloads) {		
+		
 		for (byte[] b : payloads){			
-			this.payloads.add(b.clone());
+			if (b == null)				
+				this.payloads.add(null);			
+			else 
+				this.payloads.add(b.clone());			
 		}
 	}
 
diff --git a/src/main/java/de/ids_mannheim/korap/query/spans/SubSpans.java b/src/main/java/de/ids_mannheim/korap/query/spans/SubSpans.java
index 2fe6b2b..bec7671 100644
--- a/src/main/java/de/ids_mannheim/korap/query/spans/SubSpans.java
+++ b/src/main/java/de/ids_mannheim/korap/query/spans/SubSpans.java
@@ -25,7 +25,6 @@
 
 	@Override
 	public boolean next() throws IOException {
-		matchPayload.clear();
 		isStartEnumeration=false;		
 		return advance();
 	}