Fix cloning newly added cells
Added duplicate cells detection