fix an import bug for thread