Fix bugs in TT (tabs)