Fixed update script variables.