fixing sam update