fixing returning session by ID