Fix deleting fields bug - deepcopy