Fixed NaN error in passage terms.