Fixed stupid bugs in copy constructor and copy assignment operator