Fixed Merge to identify inserts correctly