Fix copyPaste asserting that the object exist