Fixed the resolve of queue.