:internal: fix some bugs in copy constructor and assignment operator