diff --git a/pixel.cpp b/pixel.cpp
index 0026b3c3fcf37e54c60dabf3242fd301357b988d..6b1b9bcd3635a4e1640b7e4c3cadff08985f1023 100644
--- a/pixel.cpp
+++ b/pixel.cpp
@@ -42,6 +42,7 @@ void pixel(
 	if (count_streams == stream_count){
 		count_streams = 0;
 		flag = false;
+		p_count=3;
 	}
 
 	// pending: have to make count=0 when TLAST signal is active -  for w not in the range of 0 to n(size of the array)