fix to session state