it was saving the picture palette, ie palette before any modification in the palette dialog.
fixes http://pulkomandy.tk/projects/GrafX2/ticket/121