fix style for matched text