logic fix in typer sample parser