Corrected error in stop triggering.