fix BaseThread