fixed a bug

fixed bug in stop