Fixed bug in copy constructor.