Fixed bug in session handling