fixed error on copy constructor