Fix to session exception