Fixed palette reference error