fixed tb bug