problems with macros

I'm creating a UHC with drops.

Preamble:

There are different scores and things I wanted to respect, such as the world border size (wbSize), which already has a scoreboard that keeps track of its size (uhc.trigger).

Then, to make the drops land randomly, I use the spreadplayers command and use the macros to take the size of (wbSize) and use it for the spreadplayers' max range. The macro is actually called (maxRange), but it doesn't seem to work. I also checked the logs, but I don't understand what the problem is.

Task: Use spreadplayers to teleport the drops, but use the macro to have random drops within the world border.

summon chicken ~ ~35 ~ {Silent:1b,Invulnerable:1b,Team:"drop"........ data modify storage drop macro set value {"maxRange":0} execute store result storage drop macro.maxRange int 1 run scoreboard players get wbSize uhc.trigger $spreadplayers 0 0 0 $(maxRange) true @e[team=drop] execute as @e[team=drop,limit=1] at @s run tp @s ~ ~50 ~ tellraw @a ["",{"text":"Il drop è caduto a coordinate: "},{"score":{"name":"x","objective":"test"},"color":"gold","bold":true},{"text":" ","color":"gold"},{"score":{"name":"z","objective":"test"},"color":"gold","bold":true}]

Continue to help post