bugfix

Bugfix for deepcopy