Fixed the stop code