Fix merge records