Corrected bug in stop orders.