GIMP pasting on file messes colors

I'm using Avery's iconset for MZ. I wanted to paste icons for my battlers for the ATB markers. So I copied the head area of my battler sprites and pasted on the iconset sheet but the colors get messed. I googled that this probably has something to do with the iconset mode being colors indexed? So is there some easy way to just paste them without messing the colors? What does it affect if I try changing the mode of the inconset (if it'd even help)? Thanks!
You can change the colour mode of an image in GIMP via Image > Mode, and then set it back to RGB if it is indeed indexed, which should let you paste new things in. The colours shouldn't be affected doing it this way, since you're going from a limited palette back to rgb. And then you could set it back to indexed after if filesize is a concern where it can make a new optimised palette with the new stuff you've put in.
Okay thanks! That seemed to work, and the file size only went from 400kb to 1,1Mb so I guess there's no problem there.

Original thread: https://forums.rpgmakerweb.com/threads/gimp-pasting-on-file-messes-colors.169428/