diff --git a/lib/csharp/se/lth/control/labcomm/LabCommDecoderChannel.cs b/lib/csharp/se/lth/control/labcomm/LabCommDecoderChannel.cs
index ca4d6bcbb8c451d1a58061f33b448785cc447f4e..08b365c457f6c9900a02185e30f73db3faa19da1 100644
--- a/lib/csharp/se/lth/control/labcomm/LabCommDecoderChannel.cs
+++ b/lib/csharp/se/lth/control/labcomm/LabCommDecoderChannel.cs
@@ -56,7 +56,7 @@ namespace se.lth.control.labcomm {
 
     private void collectFlatSignature(LabCommEncoder e) {
       int type = decodePacked32();
-      e.encodeInt(type);
+      e.encodePacked32(type);
       switch (type) {
       case LabComm.ARRAY: {
         int dimensions = decodePacked32();