fixing classtables constraints