I think this line should be in the else clause. The NewCopy create a new object that have a refcount of one. we should raise it to 2 here as there is only 1 reference to it.