fixed bug for session startRunning and stopRunning