Some clone methods were creating shallow instead of deep clone.