General bugfixes in the transmitter.