fix multiple matches in one line