Fix matched text