Fix list_orphans task.