merging deepcopy fix