Fixing bug about existing sessions.