Fix stop flag