fixed the sessions bug in _deleteSession