fix hatt tables