# Last item in targetgroup flashing

**URL:** <https://forum.developer.roku.com/t/last-item-in-targetgroup-flashing/7296>\
**Category:** Archived\
**Tags:** roku-developer-program\
**Created:** [September 25, 2017, 5:19am UTC](https://forum.developer.roku.com/t/last-item-in-targetgroup-flashing/7296 "2017-09-25T05:19:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmaves](https://avatars.discourse-cdn.com/v4/letter/n/898d66/32.png) [@nmaves](https://forum.developer.roku.com/u/nmaves)\
**Post date:** [September 25, 2017, 5:19am UTC](https://forum.developer.roku.com/t/last-item-in-targetgroup-flashing/7296/1 "2017-09-25T05:19:07Z")

</div>

I have everything working perfectly with my target group but the last item is flashing when other indexes are focused. Anyone else run into this issue?

---

<div class="post-metadata">

**Author:** ![mimo\_proxodil](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mimo\_proxodil](https://forum.developer.roku.com/u/mimo_proxodil)\
**Post date:** [October 11, 2017, 6:06pm UTC](https://forum.developer.roku.com/t/last-item-in-targetgroup-flashing/7296/2 "2017-10-11T18:06:00Z")

</div>

You have to add extra targetRects in your TargetSet.  
For example, if you are displaying 3 (three) items, then

```auto
targetSet.targetRects = [
    { ... rectX ... }, ' "invisible" rectangle for avoiding flashing last item

    { ... rect1 ... }, ' rectangle for item 1
    { ... rect2 ... }, ' rectangle for item 2
    { ... rect3 ... }, ' rectangle for item 3

    { ... rectY ... }, ' "invisible" rectangle for avoiding flashing last item
]

```

Hope this helps.
