fix when replace by found match