- fix working for multiple matches in one file