Fixes to FEC encoded transmit function