fix issue when switching from Match to text