fix incomplete message passing in message buffer