fixed error on NOHTML example that produced NaN