Fixed the daemon when there's an empty queue.