fixes matching mechanism bug.