copyconstructor bug fix.