fix palette numbers