Fixed empty palette list error.