Fixed copy constructor