Variable alias not resolved

I am building a puglin of a list of variables that allows to visualize all the variables (local and remote) in a list and by clicking on it I can apply it to the selected node.
But I have a div that works to preview the variable. This variable is Alias and I can not get the value of the color to be applied to the background of the div. While if I click on the row of the variable, the color is applied correctly and normal variables correctly represent the color too. Would anyone know how to solve this problem because I can not find a solution? thank you very much in advance.