Fixed exact stop error in tpCheckEndCondition