update script safety fix