- fixed problem if session does not exist