fix typo in sample code