fix thread table