fix `palette` variables lookups