try to fix wrong highlighting on match