fixed sc to stop when finished