fix update script