Fix a bug of reseting when the competitor exits