fix crash if stop called before start