fix bug that change match-data by doing logging