Bug fix in list clone function.