fixed error in copy