fixes typo in sample code