[Fix]: Fixed bug in wait_queue.