Fixed the QUEUE_SIZE bug