bug fix element highlight rendering