Fix bug with session id