fix several tables bug for th