fix update script variable