Fix setting session id