Fix bug where app can't find session id