off by 1 in the palette