Are you sure that this second deep copy is necessary?