fix the update script