Fix another bug in the MessageQueue.