Fixed typo in the _update_existing_instance() function