fix error about tor