Fix generating of invalid message in Ethernet mode