Fix bug in copy constructor.