fix defunct copy constructor