Fixed bug that prevented retrieving the session