Fixed the stop method