merge changes when updating inserted objects.