fix the queue array