fixed issue with incorrect session id