# Black Box over Layers when adding a New Color

**URL:** <https://community.aseprite.org/t/black-box-over-layers-when-adding-a-new-color/328>\
**Category:** Bug Reports\
**Created:** [August 17, 2017, 2:49am UTC](https://community.aseprite.org/t/black-box-over-layers-when-adding-a-new-color/328 "2017-08-17T02:49:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClyffeSmash](https://community.aseprite.org/user_avatar/community.aseprite.org/clyffesmash/32/253_2.png) [@ClyffeSmash](https://community.aseprite.org/u/ClyffeSmash)\
**Post date:** [August 17, 2017, 2:49am UTC](https://community.aseprite.org/t/black-box-over-layers-when-adding-a-new-color/328/1 "2017-08-17T02:49:26Z")

</div>

Hi! So, whenever I try to add a new color to my palette, I get a bug where it draws a black frame around my current layer, as shown.

 ![03](https://community.aseprite.org/uploads/default/original/1X/e26296bb716857dd2cb50173f0ffa1db7eb792ab.png) .

The same box is created when trying to save the individual layers as PNG images.  
This a recent bug that occurred both in 1.1.13 and 1.2.  
If this is not a bug, what can I do to fix it?

---

<div class="post-metadata">

**Author:** ![dacap](https://community.aseprite.org/user_avatar/community.aseprite.org/dacap/32/10_2.png) [@dacap](https://community.aseprite.org/u/dacap)\
**Post date:** [August 19, 2017, 3:38am UTC](https://community.aseprite.org/t/black-box-over-layers-when-adding-a-new-color/328/2 "2017-08-19T03:38:51Z")

</div>

Hi @ClyffeSmash, it might be caused by some “hidden” pixels that reappears when the new palette entry is added. Here a little video showing how this can be reproduced (we draw with a new color that then we remove, but then we add it again, the index data in the image is still present):

[![](https://img.youtube.com/vi/21BkPhJhIxo/hqdefault.jpg "Hide/show palette entry") ](https://www.youtube.com/watch?v=21BkPhJhIxo)

---

<div class="post-metadata">

**Author:** ![ClyffeSmash](https://community.aseprite.org/user_avatar/community.aseprite.org/clyffesmash/32/253_2.png) [@ClyffeSmash](https://community.aseprite.org/u/ClyffeSmash)\
**Post date:** [August 20, 2017, 8:11pm UTC](https://community.aseprite.org/t/black-box-over-layers-when-adding-a-new-color/328/3 "2017-08-20T20:11:07Z")

</div>

Hey, that seemed to do the trick! Thanks.
