Formula in shortcuts bug

I set a text gv as 0.

I can set a touch action to increase this value by 1 with Touch -> Toggle Global Switch -> num -> $gv(num)+1$. Each touch action increases the value by 1 as intended.

If I create a shortcut -> Switch Global -> num -> $gv(num)+1$, the gv is just set to 1 and it doesn't increase.

I think there is a problem about how shortcut read formulas. Can anyone confirm?