Fix one more bug due to set senea to INF (resulted in NaN).