Bugfix: Retrieve the right session.