fix copy() method.