minor fix to session