[bugfix] while statement