fixing the update script