hello, I think you set a string (text) on a number based variable. NaN = Not a Number.
you should save your variable via "set local value" action. fill the Key with your desired save name, and value with your global variable.
to load it, use system -> set value -> WebStorage.LocalValue("save name").
.
I hope you get it, my english isn't very good.