fix bug with empty tor families