Fixed a wrong operation on the message queue.