deepcopy fix for bond