Fix palettes not saving and fixes