fix palette regression