diff --git a/dstat_interface/dstat_comm.py b/dstat_interface/dstat_comm.py
index 511b05934f0a1d2e1a5fabff18adf7f6f3a40145..b50aa6434b3b3070d37bfacaebe3a89807c4b920 100755
--- a/dstat_interface/dstat_comm.py
+++ b/dstat_interface/dstat_comm.py
@@ -205,8 +205,8 @@ class SerialConnection(GObject.Object):
     def flush_data(self):
         self.assert_connected()
         
-        while self.proc_pipe_p.poll() is True:
-            self.proc_pipe_p.recv()
+        while self.data_pipe_p.poll() is True:
+            self.data_pipe_p.recv()
     
     def send_ctrl(self, ctrl):
         self.assert_connected()