diff --git a/LidarPlugin/IO/vtkStream.cxx b/LidarPlugin/IO/vtkStream.cxx
index 421952baeaaadbaae4e03af2e9f67c507c5d22bd..906d1dc58c9ec53e0dc0e59ee1b91acbf002c334 100644
--- a/LidarPlugin/IO/vtkStream.cxx
+++ b/LidarPlugin/IO/vtkStream.cxx
@@ -206,7 +206,7 @@ void vtkStream::EnqueuePacket(NetworkPacket* packet)
     packet2 = new NetworkPacket(*packet);
     this->WriterThread->Enqueue(packet2);
   }
-  assert(this->Consumer && "The receiver thread should be started before the consumer one");
+  assert(this->ConsumerThread && "The receiver thread should be started before the consumer one");
   this->ConsumerThread->Enqueue(packet);
 }