fixed a bug that initializes the transmitter to having message state.