Fixed msg_queue writer error