fixed tor bug