Fixed copy constructor.