Fix copy ctor and assignment operator issue.