fixed session id bug