Colors get messed up

Whenever I try to copy paste a part of one image into another the colors get messed up. For example if I copy a pink palette it will turn red if I paste it in another image. Is this a bug?

check iuf you not using the indexed color mode, if so whatever you paste or pick a color, it will get changed to the closest match in the currently loaded palette.