fixed stopping-tolerance bug