Index: trunk/FACT++/src/RemoteControl.h
===================================================================
--- trunk/FACT++/src/RemoteControl.h	(revision 13731)
+++ trunk/FACT++/src/RemoteControl.h	(revision 13732)
@@ -220,9 +220,15 @@
             T::GetStreamOut().SetBacklog(true);
 
-            if (T::GetLabel()!=0 && l->second->GetState()!=state)
+            if (T::GetLabel()!=-2 && l->second->GetState()!=state)
             {
                 int label = -1;
                 in >> label;
-                T::SetLabel(label);
+                if (in.fail() && !in.eof())
+                {
+                    lout << kRed << "Invalid label in '" << str.substr(3) << "'" << endl;
+                    label = -2;
+                }
+                else
+                    T::SetLabel(label);
             }
 
