fix matching records merged twice