fixed problem in session recuperation