Fixed refresh problem when saving a variable with a new script