Nasty bug in __deepcopy__ for detector masks (were reset to 0)