correcting stop error