fix to delete a session