fix : possible infinite loop in typer