fixed palette generation mistake