now, all the errors are fixed in the console:
but the gameobject still disappears after adding the update code