How do you set your variables on main layout?
for example if you do something like this
+Start of layout -> var 1 set to 1
var 2 set to 1
var 3 set to 1
They will always set to these values every time you visit that layout - no matter if you save them or not.
I haven't seen your capx but I think thats your issue.