diff --git a/protocol/common.go b/protocol/common.go
index 0e3f7f7ce7e56d3cc68610d563265a64df07b55d..744f334ad3ff6bf537002af5706e79dd7da797c2 100644
--- a/protocol/common.go
+++ b/protocol/common.go
@@ -101,7 +101,7 @@ func readHeader(data []byte) (packetType uint16, size uint32, packet []byte, err
 	if len(data) < int(size) {
 		return packetType, size, data[8:], errors.New("data incomplete, fragment received")
 	}
-	return packetType, size, data[8:size-8], nil
+	return packetType, size, data[8:size], nil
 }
 
 // forwards data from a Connection to Transport and wraps it in the rdpgw protocol