fixed bug related to session