Fixed problem in session handler.