Fixed use of clone on list (which relied on the list being an array list).