[COCO3] Fixed an issue that could cause the palette to not be updated correctly after a save state load