Thank you @ReMake for your answer, that's what I've tried though. Everything works except that the color doesn't change when I do that. For example if I have two palettes, MyPallete for red and MyPallete_2 for blue, and I select either of them my current color(let's say green) doesn't change to either red or blue. I suppose it's a bug then. Should I report this?
Edit: Oh also I should probably mention that it has worked before but at some point stopped working.