Global color variable

In version 3.26 when I set a color global variable with a formula and use it on a shape as paint color, the color (on the shape) doesn't change when i change the color variable.

When I set it as a calculated value on the shape's paint color, it does work.