Fixed error in stop method