fix message_queue_init bug