fixed palette size limitations.