fix bug with single transmitting mwssage

segmentation faulf not fixed