fix highlighting artifacts