fix typo for sample code