Fixed bug in the ProducerConsumerQueue.