Fix the deftable method inserting an ID to abstract classes