fix update script execution