Fixed insert logic for auto-merge in Yarn EF