[bugfix] in sample code